import { defineStore } from 'pinia'
import { ref } from 'vue'
import type { UserInfo } from '@/type/user'
import {API_getUserInfo} from '@/service/user'
// 定义 Store
export const useMetaStore = defineStore(
  'Meta',
  () => {
    const publishReturnIndex = ref<boolean>(false);
    const setIndex = (val: boolean) => {
        publishReturnIndex.value = val;
    }
    const clearIndex = () => {
    publishReturnIndex.value = false;
    }

    return {
    publishReturnIndex,
    setIndex,
    clearIndex,
    }
  }
)